system of quadratic and linear equations